home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- #
- # Setup Modem port
- #
- dialog --title "MODEM PORT CONFIGURATION" \
- --yesno "\n\
- This part of the configuration process will create a link in /dev\n\
- from your modem device to /dev/modem. You can change this link\n\
- later if the setting chosen does not work, or if you switch to a\n\
- different port.\n\n\
- Would you like to set up your modem?" 12 70
- if [ $? = 0 ]; then
- dialog --title "SELECT SERIAL PORT" --menu "Your modem requires a serial port.\n\
- Which one would you \
- like to use?" 13 60 4 \
- "cua0" "com1: under DOS" \
- "cua1" "com2: under DOS" \
- "cua2" "com3: under DOS" \
- "cua3" "com4: under DOS" 2> /tmp/mport
- if [ $? = 1 ]; then
- rm -f /tmp/mport
- exit
- fi
- MODEM_DEVICE="`cat /tmp/mport`"
- rm -f /tmp/mport
- (cd /dev; ln -sf /dev/$MODEM_DEVICE modem)
- fi
-
-